#ifndef WIKIPAGEEDITOR_H
#define WIKIPAGEEDITOR_H

#include <QWidget>
#include <QtGui>
#include <QTextCodec>;
#include <QDomDocument>;
#include "t_http/t_http.h"

namespace Ui {
    class wikiPageEditor;
}

class wikiPageEditor : public QWidget
{
    Q_OBJECT

public:
    explicit wikiPageEditor(QWidget *parent = 0);
    ~wikiPageEditor();

private:
    Ui::wikiPageEditor *ui;

    QLineEdit *wikiUrlLineEdit;
    QLineEdit *pageNameLineEdit;
    QPlainTextEdit *pageSourceTextEdit;
    QLineEdit *userLineEdit;
    QLineEdit *passwordLineEdit;


    int advSetupUi();

    t_http *cHttp;
    QString token;
    QString sessionId;
    QNetworkCookieJar *cookieJar;

private slots:

    void on_loginPushButton_clicked(bool checked);//login
    void on_logoutPushButton_clicked(bool checked);//logout

    void on_sendPagePushButton_clicked(bool checked);
    void on_getPagePushButton_clicked(bool checked);
};

#endif // WIKIPAGEEDITOR_H
